package cn.cherish.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

// 配置ribbon策略
@Configuration
public class RuleConfig {
    @Bean
    public IRule iRule(){
        return new RandomRule();
    }

}
